import request from '@/utils/request'

// 获取每页车辆数据
export const carlist = (params) => request.get('/truckType/page', { params })

// 添加车型
export const addCarmodel = data => request.post('/truckType', data)

// 根据id获取车辆详情
export const getcarmodel = id => request.get(`/truckType/${id}`)

// 更新车型管理
export const updatecarmodel = data => request.put(`/truckType/${data.id}`, data)

// 删除车型
export const delcarmodel = id => request.delete(`/truckType/${id}`)
